|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvectorimage.VectorObject
raar.world.RAWorldObject
public class RAWorldObject
Version 1.2 adds support for vector based worlds. This class defines the objects that can be placed in such worlds.
| Field Summary | |
|---|---|
static int |
SOBJ_AGENT
Subclass object agent. |
static int |
SOBJ_TRACE
Subclass object trace. |
| Fields inherited from class vectorimage.VectorObject |
|---|
OBJ_ELLIPSE, OBJ_LINE, OBJ_RECTANGLE |
| Constructor Summary | |
|---|---|
RAWorldObject(java.lang.String className,
java.lang.String name,
int type,
java.awt.geom.Rectangle2D.Double bounds,
double rotation,
java.awt.Color color,
boolean isStatic,
boolean fixed,
boolean massive,
boolean movable,
boolean light,
double delay)
Construct the shape. |
|
| Method Summary | |
|---|---|
GVectorObject |
createGVectorObject()
Create a GVectorObject. |
boolean |
emitsLight()
Return whether the object emits light. |
java.lang.String |
getClassName()
Return the object's class name. |
java.lang.String |
getName()
Return the object's name. |
boolean |
isFixed()
Return whether the object is fixed. |
boolean |
isLight()
Return whether the object is a lightsource. |
boolean |
isMassive()
Return whether the object is massive. |
boolean |
isMovable()
Return whether the object is movable. |
boolean |
isStatic()
Return whether the object is static. |
void |
moveBy(double dx,
double dy)
Move the object by dx and dy, iff it is movable. |
| Methods inherited from class vectorimage.VectorObject |
|---|
contains, getBounds, getColor, getPosition, getRotation, getType, isFilled, setBounds, setPosition, setRotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SOBJ_AGENT
public static final int SOBJ_TRACE
| Constructor Detail |
|---|
public RAWorldObject(java.lang.String className,
java.lang.String name,
int type,
java.awt.geom.Rectangle2D.Double bounds,
double rotation,
java.awt.Color color,
boolean isStatic,
boolean fixed,
boolean massive,
boolean movable,
boolean light,
double delay)
| Method Detail |
|---|
public java.lang.String getClassName()
public java.lang.String getName()
public boolean emitsLight()
public boolean isLight()
public boolean isStatic()
public boolean isFixed()
public boolean isMassive()
public boolean isMovable()
public void moveBy(double dx,
double dy)
public GVectorObject createGVectorObject()
createGVectorObject in class VectorObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||